﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category7
{
  public class MT752 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagChoiceDefinition U0013;
    private static SwiftTagDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagChoiceDefinition U001B;
    private static SwiftTagDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagChoiceDefinition U0084;
    private static SwiftTagDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagDefinition U008F;

    [Description("Documentary Credit Number")]
    public Tag20 DocumentaryCreditNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0002);
      }
    }

    [Description("Documentary Credit Number")]
    public Tag20 Tag20_DocumentaryCreditNumber
    {
      get
      {
        return this.DocumentaryCreditNumber_20;
      }
    }

    [Description("Presenting Banks Reference")]
    public Tag21 PresentingBanksReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0004);
      }
    }

    [Description("Presenting Banks Reference")]
    public Tag21 Tag21_PresentingBanksReference
    {
      get
      {
        return this.PresentingBanksReference_21;
      }
    }

    [Description("Further Identification")]
    public MT752.Tag23 FurtherIdentification_23
    {
      get
      {
        return new MT752.Tag23((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0006);
      }
    }

    [Description("Further Identification")]
    public MT752.Tag23 Tag23_FurtherIdentification
    {
      get
      {
        return this.FurtherIdentification_23;
      }
    }

    [Description("Date Of Advice of Discrepancy Or Mailing")]
    public Tag30 DateOfAdviceOfDiscrepancyOrMailing_30
    {
      get
      {
        return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0008);
      }
    }

    [Description("Date Of Advice of Discrepancy Or Mailing")]
    public Tag30 Tag30_DateOfAdviceOfDiscrepancyOrMailing
    {
      get
      {
        return this.DateOfAdviceOfDiscrepancyOrMailing_30;
      }
    }

    [Description("Total Amount Advised")]
    public Tag32B TotalAmountAdvised_32B
    {
      get
      {
        return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U000F);
      }
    }

    [Description("Total Amount Advised")]
    public Tag32B Tag32B_TotalAmountAdvised
    {
      get
      {
        return this.TotalAmountAdvised_32B;
      }
    }

    [Description("Charges Deducted")]
    public Tag71B ChargesDeducted_71B
    {
      get
      {
        return new Tag71B((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0012);
      }
    }

    [Description("Charges Deducted")]
    public Tag71B Tag71B_ChargesDeducted
    {
      get
      {
        return this.ChargesDeducted_71B;
      }
    }

    [Description("Net Amount")]
    public Tag33A NetAmount_33A
    {
      get
      {
        return new Tag33A((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0014);
      }
    }

    [Description("Net Amount")]
    public Tag33A Tag33A_NetAmount
    {
      get
      {
        return this.NetAmount_33A;
      }
    }

    [Description("Net Amount")]
    public Tag33B NetAmount_33B
    {
      get
      {
        return new Tag33B((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0018);
      }
    }

    [Description("Net Amount")]
    public Tag33B Tag33B_NetAmount
    {
      get
      {
        return this.NetAmount_33B;
      }
    }

    [Description("Senders Correspondent")]
    public Tag53A SendersCorrespondent_53A
    {
      get
      {
        return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U001C);
      }
    }

    [Description("Senders Correspondent")]
    public Tag53A Tag53A_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53A;
      }
    }

    [Description("Senders Correspondent")]
    public Tag53B SendersCorrespondent_53B
    {
      get
      {
        return new Tag53B((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U001F);
      }
    }

    [Description("Senders Correspondent")]
    public Tag53B Tag53B_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53B;
      }
    }

    [Description("Senders Correspondent")]
    public Tag53D SendersCorrespondent_53D
    {
      get
      {
        return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0081);
      }
    }

    [Description("Senders Correspondent")]
    public Tag53D Tag53D_SendersCorrespondent
    {
      get
      {
        return this.SendersCorrespondent_53D;
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54A ReceiversCorrespondent_54A
    {
      get
      {
        return new Tag54A((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0086);
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54A Tag54A_ReceiversCorrespondent
    {
      get
      {
        return this.ReceiversCorrespondent_54A;
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54B ReceiversCorrespondent_54B
    {
      get
      {
        return new Tag54B((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U0089);
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54B Tag54B_ReceiversCorrespondent
    {
      get
      {
        return this.ReceiversCorrespondent_54B;
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54D ReceiversCorrespondent_54D
    {
      get
      {
        return new Tag54D((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U008C);
      }
    }

    [Description("Receivers Correspondent")]
    public Tag54D Tag54D_ReceiversCorrespondent
    {
      get
      {
        return this.ReceiversCorrespondent_54D;
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT752.U008F);
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    public MT752()
      : base(true)
    {
    }

    public MT752(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT752.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT752.MessageDefinition = new SwiftMessageDefinition("MT752", "Authorisation to Pay, Accept or Negotiate");
      MT752.U0002 = new SwiftTagDefinition("DocumentaryCreditNumber_20", "Documentary Credit Number");
      MT752.U0002.TagName = ":20:";
      MT752.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT752.U0002.Elements.Add((SwiftDefinitionElement) MT752.U0003);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0002);
      MT752.U0004 = new SwiftTagDefinition("PresentingBanksReference_21", "Presenting Banks Reference");
      MT752.U0004.TagName = ":21:";
      MT752.U0005 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT752.U0004.Elements.Add((SwiftDefinitionElement) MT752.U0005);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0004);
      MT752.U0006 = new SwiftTagDefinition("FurtherIdentification_23", "Further Identification");
      MT752.U0006.TagName = ":23:";
      MT752.U0007 = new SwiftTagSubItemDefinition("FurtherIdentification", "Further Identification");
      MT752.U0006.Elements.Add((SwiftDefinitionElement) MT752.U0007);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0006);
      MT752.U0008 = new SwiftTagDefinition("DateOfAdviceOfDiscrepancyOrMailing_30", "Date Of Advice of Discrepancy Or Mailing");
      MT752.U0008.TagName = ":30:";
      MT752.U000E = new SwiftTagSubItemDefinition("Date", "Date");
      MT752.U0008.Elements.Add((SwiftDefinitionElement) MT752.U000E);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0008);
      MT752.U000F = new SwiftTagDefinition("TotalAmountAdvised_32B", "Total Amount Advised");
      MT752.U000F.TagName = ":32B:";
      MT752.U000F.Mandatory = false;
      MT752.U0010 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT752.U000F.Elements.Add((SwiftDefinitionElement) MT752.U0010);
      MT752.U0011 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT752.U000F.Elements.Add((SwiftDefinitionElement) MT752.U0011);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U000F);
      MT752.U0012 = new SwiftTagDefinition("ChargesDeducted_71B", "Charges Deducted");
      MT752.U0012.TagName = ":71B:";
      MT752.U0012.Mandatory = false;
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0012);
      MT752.U0013 = new SwiftTagChoiceDefinition("Choice", "");
      MT752.U0013.Mandatory = false;
      MT752.U0013.Multiple = true;
      MT752.U0014 = new SwiftTagDefinition("NetAmount_33A", "Net Amount");
      MT752.U0014.TagName = ":33A:";
      MT752.U0015 = new SwiftTagSubItemDefinition("Date", "Date");
      MT752.U0014.Elements.Add((SwiftDefinitionElement) MT752.U0015);
      MT752.U0016 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT752.U0014.Elements.Add((SwiftDefinitionElement) MT752.U0016);
      MT752.U0017 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT752.U0014.Elements.Add((SwiftDefinitionElement) MT752.U0017);
      MT752.U0013.Elements.Add((SwiftDefinitionElement) MT752.U0014);
      MT752.U0018 = new SwiftTagDefinition("NetAmount_33B", "Net Amount");
      MT752.U0018.TagName = ":33B:";
      MT752.U0019 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT752.U0018.Elements.Add((SwiftDefinitionElement) MT752.U0019);
      MT752.U001A = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT752.U0018.Elements.Add((SwiftDefinitionElement) MT752.U001A);
      MT752.U0013.Elements.Add((SwiftDefinitionElement) MT752.U0018);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0013);
      MT752.U001B = new SwiftTagChoiceDefinition("Choice", "");
      MT752.U001B.Mandatory = false;
      MT752.U001B.Multiple = true;
      MT752.U001C = new SwiftTagDefinition("SendersCorrespondent_53A", "Senders Correspondent");
      MT752.U001C.TagName = ":53A:";
      MT752.U001D = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT752.U001D.Mandatory = false;
      MT752.U001C.Elements.Add((SwiftDefinitionElement) MT752.U001D);
      MT752.U001E = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT752.U001C.Elements.Add((SwiftDefinitionElement) MT752.U001E);
      MT752.U001B.Elements.Add((SwiftDefinitionElement) MT752.U001C);
      MT752.U001F = new SwiftTagDefinition("SendersCorrespondent_53B", "Senders Correspondent");
      MT752.U001F.TagName = ":53B:";
      MT752.U007F = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT752.U007F.Mandatory = false;
      MT752.U001F.Elements.Add((SwiftDefinitionElement) MT752.U007F);
      MT752.U0080 = new SwiftTagSubItemDefinition("Location", "Location");
      MT752.U0080.Mandatory = false;
      MT752.U001F.Elements.Add((SwiftDefinitionElement) MT752.U0080);
      MT752.U001B.Elements.Add((SwiftDefinitionElement) MT752.U001F);
      MT752.U0081 = new SwiftTagDefinition("SendersCorrespondent_53D", "Senders Correspondent");
      MT752.U0081.TagName = ":53D:";
      MT752.U0082 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT752.U0082.Mandatory = false;
      MT752.U0081.Elements.Add((SwiftDefinitionElement) MT752.U0082);
      MT752.U0083 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT752.U0081.Elements.Add((SwiftDefinitionElement) MT752.U0083);
      MT752.U001B.Elements.Add((SwiftDefinitionElement) MT752.U0081);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U001B);
      MT752.U0084 = new SwiftTagChoiceDefinition("Choice", "");
      MT752.U0084.Mandatory = false;
      MT752.U0084.Multiple = true;
      MT752.U0086 = new SwiftTagDefinition("ReceiversCorrespondent_54A", "Receivers Correspondent");
      MT752.U0086.TagName = ":54A:";
      MT752.U0087 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT752.U0087.Mandatory = false;
      MT752.U0086.Elements.Add((SwiftDefinitionElement) MT752.U0087);
      MT752.U0088 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT752.U0086.Elements.Add((SwiftDefinitionElement) MT752.U0088);
      MT752.U0084.Elements.Add((SwiftDefinitionElement) MT752.U0086);
      MT752.U0089 = new SwiftTagDefinition("ReceiversCorrespondent_54B", "Receivers Correspondent");
      MT752.U0089.TagName = ":54B:";
      MT752.U008A = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT752.U008A.Mandatory = false;
      MT752.U0089.Elements.Add((SwiftDefinitionElement) MT752.U008A);
      MT752.U008B = new SwiftTagSubItemDefinition("Location", "Location");
      MT752.U008B.Mandatory = false;
      MT752.U0089.Elements.Add((SwiftDefinitionElement) MT752.U008B);
      MT752.U0084.Elements.Add((SwiftDefinitionElement) MT752.U0089);
      MT752.U008C = new SwiftTagDefinition("ReceiversCorrespondent_54D", "Receivers Correspondent");
      MT752.U008C.TagName = ":54D:";
      MT752.U008D = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT752.U008D.Mandatory = false;
      MT752.U008C.Elements.Add((SwiftDefinitionElement) MT752.U008D);
      MT752.U008E = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT752.U008C.Elements.Add((SwiftDefinitionElement) MT752.U008E);
      MT752.U0084.Elements.Add((SwiftDefinitionElement) MT752.U008C);
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U0084);
      MT752.U008F = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender To Receiver Information");
      MT752.U008F.TagName = ":72:";
      MT752.U008F.Mandatory = false;
      MT752.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT752.U008F);
    }

    public class Tag23 : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("23", value);
        }
      }

      internal Tag23(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }
  }
}
